package com.mindskip.xzs.service;

import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.domain.dto.admin.question.QuestionDTO;
import com.mindskip.xzs.domain.dto.admin.question.QuestionPageDTO;
import com.mindskip.xzs.domain.entity.Question;
import com.mindskip.xzs.domain.vo.admin.question.QuestionPageVO;
import com.mindskip.xzs.domain.vo.admin.question.QuestionSelectVO;

import java.util.List;

public interface QuestionService extends BaseService<Question> {

    Integer selectAllCount();

    PageInfo<QuestionPageVO> getQuestionByPage(QuestionPageDTO questionPageDTO);

    List<Question> selectByIds(List<Integer> ids);

    QuestionSelectVO questionToQuestionSelectVO(Integer id);

    QuestionSelectVO questionToQuestionSelectVO(Question question);

    void insertOrUpdateQuestion(QuestionDTO questionDTO);

    void softDeleted(Integer id);
}
